import request from '@/utils/request'

export function getList(params) {
  return request({
    url: '/spider/getList',
    method: 'get',
    params,
  })
}

export function getAllSpider(params) {
  return request({
    url: '/spider/getAllSpider',
    method: 'get',
    params,
  })
}

export function get(params) {
  return request({
    url: '/spider/get',
    method: 'get',
    params,
  })
}

export function _delete(params) {
  return request({
    url: '/spider/delete',
    method: 'post',
    data: params,
  })
}

export function update(params) {
  return request({
    url: '/spider/update',
    method: 'post',
    data: params,
  })
}

export function spiderArticle(params) {
  return request({
    url: '/spider/spiderArticle',
    method: 'post',
    data: params,
  })
}

export function add(params) {
  return request({
    url: '/spider/add',
    method: 'post',
    data: params,
  })
}
